﻿/*
 * Created by SharpDevelop.
 * User: makarenkov
 * Date: 12.11.2012
 * Time: 18:33
 * 
 */
using System;
using System.IO;
using ICSharpCode.SharpDevelop.Internal.Templates;
using ICSharpCode.SharpDevelop.Project;
using ICSharpCode.SharpDevelop.Dom;

namespace ICSharpCode.tropical_storm_addin
{
	public class MonkeyProject : CompilableProject
	{

		public MonkeyProject(ProjectLoadInformation info)
			: base(info)
		{
			
		}
		
		public MonkeyProject(ProjectCreateInformation info)
			: base(info)
		{
			this.AddImport(@"$(MonkeyProjectAddInPath)\SharpDevelop.Build.MSIL.Targets", null);
		}

		public override string Language {
			get { return MonkeyProjectBinding.LanguageName; }
		}

		public override LanguageProperties LanguageProperties {
			get { return LanguageProperties.None; }
		}

		public override ItemType GetDefaultItemType(string fileName)
		{
			if (string.Equals(".monkey", Path.GetExtension(fileName), StringComparison.OrdinalIgnoreCase))
				return ItemType.Compile;
			else
				return base.GetDefaultItemType(fileName);
		}
	}
}